package designpatterns.responsibility.chain.code.approve;

/**
 * 审批需求责任链
 */
public abstract class ApproveChain {
    // 审批人
    public String name;

    // 下一个审批人
    private ApproveChain nextApprover;

    /**
     * 审批处理
     */
    abstract void doApprove(Approve approve);

    /**
     * 获取下一个审批人
     */

    public ApproveChain getNextApprover() {
        return nextApprover;
    }

    public void setNextApprover(ApproveChain nextApprover) {
        this.nextApprover = nextApprover;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
